/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package phys;

/**
 *
 * @author Vic
 */
public class TimeLoop extends Time{
    float max;
    public TimeLoop(float scale,float max) {
        super(scale);
        this.max=max;
    }

    @Override
    public void update(float dt) {
        super.update(dt);
        t%=max;
    }

    
    
    
}
